package org.example.springcloud.lb;

import org.springframework.cloud.client.ServiceInstance;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author Jandmla
 * Date: 2022/7/28
 * Time: 17:20
 * Description:
 */
public interface LoadBalancer {

    /**
     * 选择合适的服务实例
     * @param serviceInstances 服务实例列表
     * @return 服务实例
     */
    public ServiceInstance instances(List<ServiceInstance> serviceInstances);
}